import axios from '@/utils/axios';

/* 岗位管理-岗位列表（分页） */
export const getPositionList = data =>
  axios.post('/bnd-organization/organization/selectPositionList', data);

/* 岗位管理-新增岗位 */
export const addPosition = data => axios.post('/bnd-organization/organization/addPosition', data);

/* 岗位管理-编辑岗位 */
export const editPosition = data => axios.post('/bnd-organization/organization/editPosition', data);

/* 岗位管理-删除岗位 */
export const deletePosition = positionId =>
  axios.get(`/bnd-organization/organization/delPosition/${positionId}`);

/* 岗位管理-岗位详情 */
export const getPositionDetial = positionId =>
  axios.get(`/bnd-organization/organization/getPositionDetial/${positionId}`);

/* 岗位管理-查询岗位下的人员信息 */
export const getPositionUserList = data =>
  axios.post('/bnd-organization/organization/getPositionUserList', data);

/* 岗位下拉列表选择框 */
export const selectPositionChoiceList = organizationId =>
  axios.post(`/bnd-organization/organization/selectPositionChoiceList/${organizationId}`);
